package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.model.dto.request.InstitutionResetPasswordReqDTO;
import com.jzo2o.customer.service.IRegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("openServeProviderController")
@Api(tags = "机构注册相关接口")
@RequestMapping("/open/serve-provider")
public class ServerProviderController {

    @Resource
     private IRegisterService registerService;

    @ApiOperation("机构注册")
    @PostMapping("/institution/register")
    public void register(@RequestBody InstitutionRegisterReqDTO institutionRegisterReqDTO) {
        registerService.register(institutionRegisterReqDTO);
    }


}
